<?php
define('_APPEXEC',1);

include 'includes/defines.php';
include 'includes/pages.php';

include PATH_BASE.'application/template.php';
include PATH_BASE.'includes/errorConstant.php';


session_start();

$template = template::getInstance();

$template->buildHead();
try 
{
	//$template->buildMenu();
	$template->buildBody();
}
catch (Exception $e)
{
	$template->addErrorMsg($e->getMessage());
}
	
	$template->buildFooter();


?>